package com.ywd.materials.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 物资盘库记录实体类
 */
@Accessors(chain = true)
@Data
@TableName("materials_inventory_record")
public class MaterialsInventoryRecordEntity implements Serializable {

    /**
     * 盘库记录ID
     */
    @Schema(description = "盘库记录ID,修改必传")
    @TableId(type = IdType.AUTO)
    private Long id;
    /**
     * 仓库ID
     */
    @Schema(description = "仓库ID")
    private Long warehouseId;
    /**
     * 操作人ID
     */
    @Schema(description = "操作人ID")
    private Long operatorId;
    /**
     * 盘库时间
     */
    @Schema(description = "盘库时间")
    private String inventoryTime;
    /**
     * 库存物资数量
     */
    @Schema(description = "库存物资数量")
    private Integer warehouseCount;
    /**
     * 本次盘点物资总数量
     */
    @Schema(description = "本次盘点物资总数量")
    private Integer inventoryCount;
    /**
     * 已盘点物资数量
     */
    @Schema(description = "已盘点物资数量")
    private Integer completeCount;
    /**
     * 备注
     */
    @Schema(description = "备注")
    private String remark;
    /**
     * 盘库状态(0=进行中, 1=已完成)
     */
    @Schema(description = "盘库状态(0=进行中, 1=已完成)")
    private Integer status;
    /**
     * 创建者
     */
    @Schema(description = "创建者")
    private Long creator;
    /**
     * 更新者
     */
    @Schema(description = "更新者")
    private Long updater;
    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    private String createTime;
    /**
     * 更新时间
     */
    @Schema(description = "更新时间")
    private String updateTime;

    /**
     * 删除标识(0=正常,1=已删除)
     */
    @Schema(description = "删除标识(0=正常,1=已删除)",defaultValue = "0")
    @TableLogic
    private Integer deleted;
}